Class OrgPolicyConstraintCustom.Builder (0.6.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.securityposture.v1.PolicyRule>
Returns
TypeDescription
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
NameDescription
valuePolicyRule
Returns
TypeDescription
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
NameDescription
builderForValuePolicyRule.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePolicyRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePolicyRule.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PolicyRule.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OrgPolicyConstraintCustom build()
Returns
TypeDescription
OrgPolicyConstraintCustom

buildPartial()

public OrgPolicyConstraintCustom buildPartial()
Returns
TypeDescription
OrgPolicyConstraintCustom

clear()

public OrgPolicyConstraintCustom.Builder clear()
Returns
TypeDescription
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
TypeDescription
OrgPolicyConstraintCustom.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public OrgPolicyConstraintCustom.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CustomConstraintOrBuilder

getDefaultInstanceForType()

public OrgPolicyConstraintCustom getDefaultInstanceForType()
Returns
TypeDescription
OrgPolicyConstraintCustom

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the customConstraint field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCustomConstraint
Returns
TypeDescription
OrgPolicyConstraintCustom.Builder

mergeFrom(OrgPolicyConstraintCustom other)

public OrgPolicyConstraintCustom.Builder mergeFrom(OrgPolicyConstraintCustom other)
Parameter
NameDescription
otherOrgPolicyConstraintCustom
Returns
TypeDescription
OrgPolicyConstraintCustom.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public OrgPolicyConstraintCustom.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OrgPolicyConstraintCustom.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OrgPolicyConstraintCustom.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueCustomConstraint
Returns
TypeDescription
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
NameDescription
builderForValueCustomConstraint.Builder
Returns
TypeDescription
OrgPolicyConstraintCustom.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OrgPolicyConstraintCustom.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valuePolicyRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePolicyRule.Builder
Returns
TypeDescription
OrgPolicyConstraintCustom.Builder

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

public OrgPolicyConstraintCustom.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OrgPolicyConstraintCustom.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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