Class OrgPolicyConstraintCustom.Builder (0.10.0)

public static final class OrgPolicyConstraintCustom.Builder extends GeneratedMessageV3.Builder<OrgPolicyConstraintCustom.Builder> implements OrgPolicyConstraintCustomOrBuilder

Message for Org Policy Custom Constraint.

Protobuf type google.cloud.securityposture.v1.OrgPolicyConstraintCustom

Static Methods

getDescriptor()

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

Methods

addAllPolicyRules(Iterable<? extends PolicyRule> values)

public OrgPolicyConstraintCustom.Builder addAllPolicyRules(Iterable<? extends PolicyRule> values)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.securityposture.v1.PolicyRule>
Returns
Type Description
OrgPolicyConstraintCustom.Builder

addPolicyRules(PolicyRule value)

public OrgPolicyConstraintCustom.Builder addPolicyRules(PolicyRule value)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PolicyRule
Returns
Type Description
OrgPolicyConstraintCustom.Builder

addPolicyRules(PolicyRule.Builder builderForValue)

public OrgPolicyConstraintCustom.Builder addPolicyRules(PolicyRule.Builder builderForValue)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

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

addPolicyRules(int index, PolicyRule value)

public OrgPolicyConstraintCustom.Builder addPolicyRules(int index, PolicyRule value)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value PolicyRule
Returns
Type Description
OrgPolicyConstraintCustom.Builder

addPolicyRules(int index, PolicyRule.Builder builderForValue)

public OrgPolicyConstraintCustom.Builder addPolicyRules(int index, PolicyRule.Builder builderForValue)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue PolicyRule.Builder
Returns
Type Description
OrgPolicyConstraintCustom.Builder

addPolicyRulesBuilder()

public PolicyRule.Builder addPolicyRulesBuilder()

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PolicyRule.Builder

addPolicyRulesBuilder(int index)

public PolicyRule.Builder addPolicyRulesBuilder(int index)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PolicyRule.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OrgPolicyConstraintCustom build()
Returns
Type Description
OrgPolicyConstraintCustom

buildPartial()

public OrgPolicyConstraintCustom buildPartial()
Returns
Type Description
OrgPolicyConstraintCustom

clear()

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

clearCustomConstraint()

public OrgPolicyConstraintCustom.Builder clearCustomConstraint()

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OrgPolicyConstraintCustom.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyRules()

public OrgPolicyConstraintCustom.Builder clearPolicyRules()

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OrgPolicyConstraintCustom.Builder

clone()

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

getCustomConstraint()

public CustomConstraint getCustomConstraint()

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConstraint

The customConstraint.

getCustomConstraintBuilder()

public CustomConstraint.Builder getCustomConstraintBuilder()

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConstraint.Builder

getCustomConstraintOrBuilder()

public CustomConstraintOrBuilder getCustomConstraintOrBuilder()

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConstraintOrBuilder

getDefaultInstanceForType()

public OrgPolicyConstraintCustom getDefaultInstanceForType()
Returns
Type Description
OrgPolicyConstraintCustom

getDescriptorForType()

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

getPolicyRules(int index)

public PolicyRule getPolicyRules(int index)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PolicyRule

getPolicyRulesBuilder(int index)

public PolicyRule.Builder getPolicyRulesBuilder(int index)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PolicyRule.Builder

getPolicyRulesBuilderList()

public List<PolicyRule.Builder> getPolicyRulesBuilderList()

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getPolicyRulesCount()

public int getPolicyRulesCount()

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getPolicyRulesList()

public List<PolicyRule> getPolicyRulesList()

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<PolicyRule>

getPolicyRulesOrBuilder(int index)

public PolicyRuleOrBuilder getPolicyRulesOrBuilder(int index)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PolicyRuleOrBuilder

getPolicyRulesOrBuilderList()

public List<? extends PolicyRuleOrBuilder> getPolicyRulesOrBuilderList()

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.securityposture.v1.PolicyRuleOrBuilder>

hasCustomConstraint()

public boolean hasCustomConstraint()

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the customConstraint field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomConstraint(CustomConstraint value)

public OrgPolicyConstraintCustom.Builder mergeCustomConstraint(CustomConstraint value)

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CustomConstraint
Returns
Type Description
OrgPolicyConstraintCustom.Builder

mergeFrom(OrgPolicyConstraintCustom other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePolicyRules(int index)

public OrgPolicyConstraintCustom.Builder removePolicyRules(int index)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyConstraintCustom.Builder

setCustomConstraint(CustomConstraint value)

public OrgPolicyConstraintCustom.Builder setCustomConstraint(CustomConstraint value)

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CustomConstraint
Returns
Type Description
OrgPolicyConstraintCustom.Builder

setCustomConstraint(CustomConstraint.Builder builderForValue)

public OrgPolicyConstraintCustom.Builder setCustomConstraint(CustomConstraint.Builder builderForValue)

Required. Org Policy Custom Constraint.

.google.cloud.securityposture.v1.CustomConstraint custom_constraint = 1 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicyRules(int index, PolicyRule value)

public OrgPolicyConstraintCustom.Builder setPolicyRules(int index, PolicyRule value)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value PolicyRule
Returns
Type Description
OrgPolicyConstraintCustom.Builder

setPolicyRules(int index, PolicyRule.Builder builderForValue)

public OrgPolicyConstraintCustom.Builder setPolicyRules(int index, PolicyRule.Builder builderForValue)

Required. Org Policyspec rules.

repeated .google.cloud.securityposture.v1.PolicyRule policy_rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue PolicyRule.Builder
Returns
Type Description
OrgPolicyConstraintCustom.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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