Class Constraint.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Constraint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Constraint.Builder
Overrides

build()

public Constraint build()
Returns
TypeDescription
Constraint

buildPartial()

public Constraint buildPartial()
Returns
TypeDescription
Constraint

clear()

public Constraint.Builder clear()
Returns
TypeDescription
Constraint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Constraint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Constraint.Builder
Overrides

clearImplementation()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Constraint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Constraint.Builder

clone()

public Constraint.Builder clone()
Returns
TypeDescription
Constraint.Builder
Overrides

getDefaultInstanceForType()

public Constraint getDefaultInstanceForType()
Returns
TypeDescription
Constraint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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

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.

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
TypeDescription
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
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.

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
TypeDescription
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
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Constraint other)

public Constraint.Builder mergeFrom(Constraint other)
Parameter
NameDescription
otherConstraint
Returns
TypeDescription
Constraint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Constraint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Constraint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueOrgPolicyConstraint
Returns
TypeDescription
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
NameDescription
valueOrgPolicyConstraintCustom
Returns
TypeDescription
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
NameDescription
valueSecurityHealthAnalyticsCustomModule
Returns
TypeDescription
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
NameDescription
valueSecurityHealthAnalyticsModule
Returns
TypeDescription
Constraint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Constraint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Constraint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Constraint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueOrgPolicyConstraint
Returns
TypeDescription
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
NameDescription
builderForValueOrgPolicyConstraint.Builder
Returns
TypeDescription
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
NameDescription
valueOrgPolicyConstraintCustom
Returns
TypeDescription
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
NameDescription
builderForValueOrgPolicyConstraintCustom.Builder
Returns
TypeDescription
Constraint.Builder

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

public Constraint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSecurityHealthAnalyticsCustomModule
Returns
TypeDescription
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
NameDescription
builderForValueSecurityHealthAnalyticsCustomModule.Builder
Returns
TypeDescription
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
NameDescription
valueSecurityHealthAnalyticsModule
Returns
TypeDescription
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
NameDescription
builderForValueSecurityHealthAnalyticsModule.Builder
Returns
TypeDescription
Constraint.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Constraint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Constraint.Builder
Overrides